package com.bw.service;

import com.bw.bean.Dianpu;
import com.bw.dao.DianpuDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DianpuServicempl implements DianpuService{
    @Resource
    private DianpuDao dianpuDao;
    @Override
    public List<Dianpu> list(Dianpu dianpu) {
        return dianpuDao.list(dianpu);
    }

    @Override
    public void insert(Dianpu dianpu) {
        dianpuDao.insert(dianpu);
    }

    @Override
    public void update(Dianpu dianpu) {
        dianpuDao.update(dianpu);
    }

    @Override
    public Dianpu getid(String did) {
        return dianpuDao.getid(did);
    }
}
